package top.wintp.offlinedataanalysis.anlyser.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StatsOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public StatsOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPlatformDimensionIdIsNull() {
            addCriterion("platform_dimension_id is null");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdIsNotNull() {
            addCriterion("platform_dimension_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdEqualTo(Integer value) {
            addCriterion("platform_dimension_id =", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdNotEqualTo(Integer value) {
            addCriterion("platform_dimension_id <>", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdGreaterThan(Integer value) {
            addCriterion("platform_dimension_id >", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("platform_dimension_id >=", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdLessThan(Integer value) {
            addCriterion("platform_dimension_id <", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdLessThanOrEqualTo(Integer value) {
            addCriterion("platform_dimension_id <=", value, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdIn(List<Integer> values) {
            addCriterion("platform_dimension_id in", values, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdNotIn(List<Integer> values) {
            addCriterion("platform_dimension_id not in", values, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdBetween(Integer value1, Integer value2) {
            addCriterion("platform_dimension_id between", value1, value2, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andPlatformDimensionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("platform_dimension_id not between", value1, value2, "platformDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdIsNull() {
            addCriterion("date_dimension_id is null");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdIsNotNull() {
            addCriterion("date_dimension_id is not null");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdEqualTo(Integer value) {
            addCriterion("date_dimension_id =", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdNotEqualTo(Integer value) {
            addCriterion("date_dimension_id <>", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdGreaterThan(Integer value) {
            addCriterion("date_dimension_id >", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("date_dimension_id >=", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdLessThan(Integer value) {
            addCriterion("date_dimension_id <", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdLessThanOrEqualTo(Integer value) {
            addCriterion("date_dimension_id <=", value, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdIn(List<Integer> values) {
            addCriterion("date_dimension_id in", values, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdNotIn(List<Integer> values) {
            addCriterion("date_dimension_id not in", values, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdBetween(Integer value1, Integer value2) {
            addCriterion("date_dimension_id between", value1, value2, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andDateDimensionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("date_dimension_id not between", value1, value2, "dateDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdIsNull() {
            addCriterion("currency_type_dimension_id is null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdIsNotNull() {
            addCriterion("currency_type_dimension_id is not null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdEqualTo(Integer value) {
            addCriterion("currency_type_dimension_id =", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdNotEqualTo(Integer value) {
            addCriterion("currency_type_dimension_id <>", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdGreaterThan(Integer value) {
            addCriterion("currency_type_dimension_id >", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("currency_type_dimension_id >=", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdLessThan(Integer value) {
            addCriterion("currency_type_dimension_id <", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdLessThanOrEqualTo(Integer value) {
            addCriterion("currency_type_dimension_id <=", value, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdIn(List<Integer> values) {
            addCriterion("currency_type_dimension_id in", values, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdNotIn(List<Integer> values) {
            addCriterion("currency_type_dimension_id not in", values, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdBetween(Integer value1, Integer value2) {
            addCriterion("currency_type_dimension_id between", value1, value2, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeDimensionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("currency_type_dimension_id not between", value1, value2, "currencyTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdIsNull() {
            addCriterion("payment_type_dimension_id is null");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdIsNotNull() {
            addCriterion("payment_type_dimension_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdEqualTo(Integer value) {
            addCriterion("payment_type_dimension_id =", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdNotEqualTo(Integer value) {
            addCriterion("payment_type_dimension_id <>", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdGreaterThan(Integer value) {
            addCriterion("payment_type_dimension_id >", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("payment_type_dimension_id >=", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdLessThan(Integer value) {
            addCriterion("payment_type_dimension_id <", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdLessThanOrEqualTo(Integer value) {
            addCriterion("payment_type_dimension_id <=", value, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdIn(List<Integer> values) {
            addCriterion("payment_type_dimension_id in", values, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdNotIn(List<Integer> values) {
            addCriterion("payment_type_dimension_id not in", values, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdBetween(Integer value1, Integer value2) {
            addCriterion("payment_type_dimension_id between", value1, value2, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andPaymentTypeDimensionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("payment_type_dimension_id not between", value1, value2, "paymentTypeDimensionId");
            return (Criteria) this;
        }

        public Criteria andOrdersIsNull() {
            addCriterion("orders is null");
            return (Criteria) this;
        }

        public Criteria andOrdersIsNotNull() {
            addCriterion("orders is not null");
            return (Criteria) this;
        }

        public Criteria andOrdersEqualTo(Integer value) {
            addCriterion("orders =", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersNotEqualTo(Integer value) {
            addCriterion("orders <>", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersGreaterThan(Integer value) {
            addCriterion("orders >", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersGreaterThanOrEqualTo(Integer value) {
            addCriterion("orders >=", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersLessThan(Integer value) {
            addCriterion("orders <", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersLessThanOrEqualTo(Integer value) {
            addCriterion("orders <=", value, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersIn(List<Integer> values) {
            addCriterion("orders in", values, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersNotIn(List<Integer> values) {
            addCriterion("orders not in", values, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersBetween(Integer value1, Integer value2) {
            addCriterion("orders between", value1, value2, "orders");
            return (Criteria) this;
        }

        public Criteria andOrdersNotBetween(Integer value1, Integer value2) {
            addCriterion("orders not between", value1, value2, "orders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersIsNull() {
            addCriterion("success_orders is null");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersIsNotNull() {
            addCriterion("success_orders is not null");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersEqualTo(Integer value) {
            addCriterion("success_orders =", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersNotEqualTo(Integer value) {
            addCriterion("success_orders <>", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersGreaterThan(Integer value) {
            addCriterion("success_orders >", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersGreaterThanOrEqualTo(Integer value) {
            addCriterion("success_orders >=", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersLessThan(Integer value) {
            addCriterion("success_orders <", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersLessThanOrEqualTo(Integer value) {
            addCriterion("success_orders <=", value, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersIn(List<Integer> values) {
            addCriterion("success_orders in", values, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersNotIn(List<Integer> values) {
            addCriterion("success_orders not in", values, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersBetween(Integer value1, Integer value2) {
            addCriterion("success_orders between", value1, value2, "successOrders");
            return (Criteria) this;
        }

        public Criteria andSuccessOrdersNotBetween(Integer value1, Integer value2) {
            addCriterion("success_orders not between", value1, value2, "successOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersIsNull() {
            addCriterion("refund_orders is null");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersIsNotNull() {
            addCriterion("refund_orders is not null");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersEqualTo(Integer value) {
            addCriterion("refund_orders =", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersNotEqualTo(Integer value) {
            addCriterion("refund_orders <>", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersGreaterThan(Integer value) {
            addCriterion("refund_orders >", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersGreaterThanOrEqualTo(Integer value) {
            addCriterion("refund_orders >=", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersLessThan(Integer value) {
            addCriterion("refund_orders <", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersLessThanOrEqualTo(Integer value) {
            addCriterion("refund_orders <=", value, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersIn(List<Integer> values) {
            addCriterion("refund_orders in", values, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersNotIn(List<Integer> values) {
            addCriterion("refund_orders not in", values, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersBetween(Integer value1, Integer value2) {
            addCriterion("refund_orders between", value1, value2, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andRefundOrdersNotBetween(Integer value1, Integer value2) {
            addCriterion("refund_orders not between", value1, value2, "refundOrders");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNull() {
            addCriterion("order_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNotNull() {
            addCriterion("order_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountEqualTo(Integer value) {
            addCriterion("order_amount =", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotEqualTo(Integer value) {
            addCriterion("order_amount <>", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThan(Integer value) {
            addCriterion("order_amount >", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_amount >=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThan(Integer value) {
            addCriterion("order_amount <", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThanOrEqualTo(Integer value) {
            addCriterion("order_amount <=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIn(List<Integer> values) {
            addCriterion("order_amount in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotIn(List<Integer> values) {
            addCriterion("order_amount not in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountBetween(Integer value1, Integer value2) {
            addCriterion("order_amount between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("order_amount not between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountIsNull() {
            addCriterion("revenue_amount is null");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountIsNotNull() {
            addCriterion("revenue_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountEqualTo(Integer value) {
            addCriterion("revenue_amount =", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountNotEqualTo(Integer value) {
            addCriterion("revenue_amount <>", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountGreaterThan(Integer value) {
            addCriterion("revenue_amount >", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("revenue_amount >=", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountLessThan(Integer value) {
            addCriterion("revenue_amount <", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountLessThanOrEqualTo(Integer value) {
            addCriterion("revenue_amount <=", value, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountIn(List<Integer> values) {
            addCriterion("revenue_amount in", values, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountNotIn(List<Integer> values) {
            addCriterion("revenue_amount not in", values, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountBetween(Integer value1, Integer value2) {
            addCriterion("revenue_amount between", value1, value2, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRevenueAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("revenue_amount not between", value1, value2, "revenueAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIsNull() {
            addCriterion("refund_amount is null");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIsNotNull() {
            addCriterion("refund_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRefundAmountEqualTo(Integer value) {
            addCriterion("refund_amount =", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotEqualTo(Integer value) {
            addCriterion("refund_amount <>", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountGreaterThan(Integer value) {
            addCriterion("refund_amount >", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("refund_amount >=", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountLessThan(Integer value) {
            addCriterion("refund_amount <", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountLessThanOrEqualTo(Integer value) {
            addCriterion("refund_amount <=", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIn(List<Integer> values) {
            addCriterion("refund_amount in", values, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotIn(List<Integer> values) {
            addCriterion("refund_amount not in", values, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountBetween(Integer value1, Integer value2) {
            addCriterion("refund_amount between", value1, value2, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("refund_amount not between", value1, value2, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountIsNull() {
            addCriterion("total_revenue_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountIsNotNull() {
            addCriterion("total_revenue_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountEqualTo(Integer value) {
            addCriterion("total_revenue_amount =", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountNotEqualTo(Integer value) {
            addCriterion("total_revenue_amount <>", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountGreaterThan(Integer value) {
            addCriterion("total_revenue_amount >", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_revenue_amount >=", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountLessThan(Integer value) {
            addCriterion("total_revenue_amount <", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountLessThanOrEqualTo(Integer value) {
            addCriterion("total_revenue_amount <=", value, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountIn(List<Integer> values) {
            addCriterion("total_revenue_amount in", values, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountNotIn(List<Integer> values) {
            addCriterion("total_revenue_amount not in", values, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountBetween(Integer value1, Integer value2) {
            addCriterion("total_revenue_amount between", value1, value2, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRevenueAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("total_revenue_amount not between", value1, value2, "totalRevenueAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIsNull() {
            addCriterion("total_refund_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIsNotNull() {
            addCriterion("total_refund_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountEqualTo(Integer value) {
            addCriterion("total_refund_amount =", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotEqualTo(Integer value) {
            addCriterion("total_refund_amount <>", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountGreaterThan(Integer value) {
            addCriterion("total_refund_amount >", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_refund_amount >=", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountLessThan(Integer value) {
            addCriterion("total_refund_amount <", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountLessThanOrEqualTo(Integer value) {
            addCriterion("total_refund_amount <=", value, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountIn(List<Integer> values) {
            addCriterion("total_refund_amount in", values, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotIn(List<Integer> values) {
            addCriterion("total_refund_amount not in", values, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountBetween(Integer value1, Integer value2) {
            addCriterion("total_refund_amount between", value1, value2, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andTotalRefundAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("total_refund_amount not between", value1, value2, "totalRefundAmount");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterionForJDBCDate("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterionForJDBCDate("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterionForJDBCDate("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterionForJDBCDate("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterionForJDBCDate("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterionForJDBCDate("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("created not between", value1, value2, "created");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}